package com.shelpe.services.sustainer.repository.jpa;

import java.util.Date;
import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.shelpe.services.sustainer.entity.jpa.Tactics;

public interface TacticsRepository extends PagingAndSortingRepository<Tactics, Long>{

	List<Tactics> findByStatusAndNextTimeBefore(int status, Date now);
	List<Tactics> findByStatusAndNextTimeIsNull(int status);
}
